package com.etime.yqtsponsor.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etime.yqtsponsor.dto.CreateSurveyActiveDto;
import com.etime.yqtsponsor.pojo.ActivePicBank;
import com.etime.yqtsponsor.pojo.ActiveTheme;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: LouisLew
 * @date: 2022/07/19/16:27
 * @description: 活动信息的数据传输层
 */
@Repository
public interface ActiveThemeMapper extends BaseMapper<ActiveTheme> {
    int saveActiveTheme(ActiveTheme activeTheme);

    @Update("UPDATE" +
            "active_theme" +
            "SET deleted= 1 " +
            "WHERE" +
            "id = #{activeId}")
    int updateDeletedById(@Param("activeId") int activeId);
}
